<?xml version="1.0" encoding="UTF-8"?>
<ui:component
 	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	
	
	<rich:popupPanel id="panelGantt" modal="true" resizeable="false" width="800" height="400"
		header="Gr�fico de Gantt" domElementAttachment="form">
		
		<f:facet name="controls">
			<h:outputLink value="#" onclick="#{rich:component('panelGantt')}.hide(); return false;"
				style="font-size: 12px;">
				X
			</h:outputLink>
		</f:facet>
		
		<a4j:mediaOutput element="img" mimeType="image/jpeg" cacheable="false" 
			createContent="#{gerarGanttControl.gerar}">
			<f:param value="#{gerarGanttControl.dataHora}" name="dataHora" />
		</a4j:mediaOutput>
		
		<br />
		<br />
		<h:panelGrid styleClass="botoes" style="vertical-align: bottom;">
			<h:button value="Fechar" onclick="#{rich:component('panelGantt')}.hide(); return false;" />
		</h:panelGrid>
	</rich:popupPanel>					
	
</ui:component>